package com.hc.entity;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.math.BigDecimal;
import java.sql.Date;

/**
 *@ClassName hc_order
 *@Description 订单表
 *@Author TJ
 *@Date 2022/10/18 19:33
 *@Version 1.0
 **/
@Data
@AllArgsConstructor
@NoArgsConstructor
public class Order {
    //id
    private Integer id;
    //商品id
    private Integer goodsId;
    //商家id
    private Integer shopId;
    //用户id
    private Integer userId;
    //下单时间
    private String ordertime;
    //原价
    private BigDecimal originalprice;
    //数量
    private int num;
    //实付
    private BigDecimal payment;
    //商品优惠卷种类中间表id
    private int discount_id;
    //状态（u-未支付  p-未使用  d-已使用）
    private String status;
    //订单编号
    private String code;

    //查询订单时使用
    private String name;//店铺名字
    private BigDecimal price;//商品单价
    private String picture;//商品图片
    private Goods goods;
    private Integer secondkillid;
}
 